package com.pro.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.pro.domain.Book;

import javax.servlet.http.HttpSession;

public interface BookService {
    /**
     *
     * @param page 页码，就是当前页
     * @param rows 页显示行数
     * @return  分页对象
     */
    public IPage<Book> paging(Long categoryId, String order, Integer page, Integer rows);
    public IPage<Book> paging2(HttpSession session, Long categoryId, String order, Integer page, Integer rows);

    /**
     * 根据id查图书详情
     * @param bookId
     * @return
     */
    public Book getBookById(Long bookId);

    /**
     * 更新图书评分，评价量
     */
    public void updateEvaluation();

}
